<?php

/**
 * test actions.
 *
 * @package    PhpProject1
 * @subpackage test
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class testActions extends sfActions {

    /**
     * Executes index action
     *
     * @param sfRequest $request A request object
     */
    public function executeIndex(sfWebRequest $request) {
        $ini = date("Y-m-d", strtotime("2014-11-12"));
        $fin = date("Y-m-d", strtotime("2014-11-14"));

        $array = array();
        $aux = $ini;

        while ($fin >= $aux) {
            array_push($array, "'" . $aux . "'");
            $aux = date("Y-m-d", strtotime($aux . " + 1 days"));
        }

        $implode = implode(",", $array);

        var_dump($implode);
    }

}
